
<div id="header"><div class="wrap">
   <div id="slide-holder">
<div id="slide-runner"> 
	<!--hình 990x200px -->
<?php
    include_once("DataProvider.php");
    $q = "SELECT * FROM `banner` WHERE 1";
    $r = DataProvider::executeQuery($q);
    $t=0;
    while($row = mysql_fetch_array($r))
    {
    $t++;
    $ten[$t] = $row['Ten'];
    $thongtin[$t] = $row['ThongTin'];  
?>
    <!--hình 990x200px -->
    <a  href="<?php echo $row['link'] ?>"><img style="width: 990px; height: 200px;" id="slide-img-<?php echo $t; ?>" src="img_admin/<?php echo $row['url'] ?>" class="slide" alt="" /></a>
 
<?php
    }
?>
    <div id="slide-controls">
     <p id="slide-client" class="text"><strong>Thông Tin: &nbsp; </strong><span></span></p>
     <p id="slide-desc" class="text"></p>
     <p id="slide-nav"></p>
    </div>
</div>
	
	<!--thông tin của hình -->
   </div>
   <script type="text/javascript">
   
    if(!window.slider) var slider={};slider.data=
	[
	{"id":"slide-img-1","client":"<?php echo $ten[1]; ?>","desc":"<?php echo $thongtin[1]; ?>"},
	{"id":"slide-img-2","client":"<?php echo $ten[2]; ?>","desc":"<?php echo $thongtin[2]; ?>"}, 
	{"id":"slide-img-3","client":"<?php echo $ten[3]; ?>","desc":"<?php echo $thongtin[3]; ?>"},
	{"id":"slide-img-4","client":"<?php echo $ten[4]; ?>","desc":"<?php echo $thongtin[4]; ?>"},
	{"id":"slide-img-5","client":"<?php echo $ten[5]; ?>","desc":"<?php echo $thongtin[5]; ?>"},
	{"id":"slide-img-6","client":"<?php echo $ten[6]; ?>","desc":"<?php echo $thongtin[6]; ?>"},
	{"id":"slide-img-7","client":"<?php echo $ten[7]; ?>","desc":"<?php echo $thongtin[7]; ?>"}
	];
   </script>
  </div></div>